package cn.zhuo.knowledge.util.log.log4j;

import lombok.extern.slf4j.Slf4j;

/**
 * <p>
 *
 * @author z2huo
 */
@Slf4j
public class ThrowExceptionLogTest {

    public static void main(String[] args) {
        try {
            int a = 1/0;
//            throw new RuntimeException("a RuntimeException");
        } catch (Exception e) {
            log.error("a RuntimeException", e);
//            log.error("a RuntimeException");
            throw new RuntimeException("a RuntimeException", e);
        }
    }

}
